﻿@model List<GTAuto.DAL.Entities.GTModel>
@{
    var modelId = HttpContext.Current.Request.Url.AbsolutePath.Split('/').Last(); ;
}
<div id="prodaja">
    <div id="prodaja_title">
        Марки авто</div>
    <div id="prodaja_block" class="left_menu_modeli">
        <ul>
            @foreach (var item in Model)
            {
                string clas = "";
                if (item.Id.ToString() == modelId)
                {
                    clas = "active";
                }
                <li class="@clas"><a href=@Url.Action("Model", "AutoModel", new { @id = item.Id })><span>@item.NameDate</span> </a></li>
            }
        </ul>
        <div class="clear">
        </div>
    </div>
</div>
